package com.rykj.energy.database.common;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;

import java.util.HashMap;
import java.util.Map;

/**
 * @author GanLu
 * @date 2020-04-26 14:07
 */
public class EqConditions<T>{
    Map<SFunction<T, ?>, Object> paramsMap = new HashMap<>();

    public static <T> EqConditions<T> create(){
        return new EqConditions<T>();
    }

    public EqConditions<T> eq(SFunction<T,?> property, Object value){
        paramsMap.put(property, value);
        return this;
    }
    public Map<SFunction<T, ?>, Object> getConditions(){
        return paramsMap;
    }

}
